import Vue from 'vue'
import Vuex from 'vuex'
import createPersistedstate from 'vuex-persistedstate'
import login from './modules/login'
import menus from './modules/menus'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
  },
  getters: {
  },
  mutations: {
  },
  actions: {
  },
  modules: {
    login,menus
  },
  plugins:[
    createPersistedstate({
      key:'rbac-login',
      paths:['login']
    }),
    createPersistedstate({
      key:'rbac-menus',
      paths:['menus']
    }),
  ]
})
